package com.redrose.rxandroiddemo.main.activity;


import android.os.Bundle;

import androidx.lifecycle.Observer;

import com.redrose.rxandroiddemo.main.viewmodel.MainViewModel;
import com.redrose.rxandroiddemo.R;
import com.redrose.rxandroiddemo.base.BaseActivity;
import com.redrose.rxandroiddemo.bean.Chapter;
import com.redrose.rxandroiddemo.databinding.ActivityMainBinding;

import java.util.List;


public class MainActivity extends BaseActivity<ActivityMainBinding> {
    private MainViewModel mMainViewModel;
    private final Observer<List<Chapter>> mChapterObserver = new Observer<List<Chapter>>() {
        @Override
        public void onChanged(List<Chapter> chapters) {
        }
    };


    @Override
    protected void initView() {

    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData() {
        mMainViewModel = getActivityViewModel(MainViewModel.class);
        mBinding.setViewModel(mMainViewModel);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


}